#pragma once
#include "dsutil.h"
//#include "dxutil.h"
////////////////////////main version
class CMarioSound
{
private:
	CSoundManager *dsound;
	CSound* SoundStart; //1
	CSound* SoundJump; //0
	CSound* SoundDie;  // 2
	CSound* SoundGetCoin; // 3
	CSound* SoundGameOver; //11
	//CSound* SoundBackground; //4
	CSound* SoundMenu;       //5
	CSound* SoundExtraLife;  //6
	CSound* SoundEnemyDie; //7
	CSound* SoundBrickBroken; //8
	CSound* SoundLevelComplete;//9
	CSound* SoundMenuChange; //12
	CSound* SoundBonusAppear;
	CSound* SoundShoot;
	CSound* SoundLevelUp;

	static CMarioSound* _instance;
	static bool flag;

	CMarioSound();

public:
	~CMarioSound();

	static CMarioSound* getInstance();

	void Play(int,bool);
	void Stop(int);
	void StopExceptionSound(int);
	int InitSound(HWND);
	CSound* LoadWave(LPTSTR);
	const static int JUMP = 0;

public:
	static const int SOUND_START = 1;
	static const int SOUND_JUMP = 0;
	static const int SOUND_DIE = 2;
	static const int SOUND_GETCOIN = 3;
	static const int SOUND_BACKGROUND = 4;
	static const int SOUND_MENU = 5;
	static const int SOUND_EXTRALIFE = 6;
	static const int SOUND_ENEMYDIE = 7;
	static const int SOUND_BRICKBROKEN = 8;
	static const int SOUND_LEVELCOMPLETE = 9;
	static const int SOUND_GAMEOVER = 11;
	static const int SOUND_MENUCHANGE = 12;
	static const int SOUND_BONUSAPPEARED = 13;
	static const int SOUND_SHOOT  = 14;
	static const int SOUND_LEVELUP = 15;
};

